package com.ruoyi.wbgame.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生回答的选项对象 wb_stu_answer
 * 
 * @author guguofu
 * @date 2021-04-16
 */
public class WbStuAnswer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学生id */
    private Long studentId;

    /** 游戏id */
    private Long gameId;

    /** 问题id */
    private Long question;

    /** 选项id */
    private Long optionId;

    /** 该题得分（答对了有得分，答错了无得分） */
    @Excel(name = "该题得分", readConverterExp = "答=对了有得分，答错了无得分")
    private Long grade;

    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setGameId(Long gameId) 
    {
        this.gameId = gameId;
    }

    public Long getGameId() 
    {
        return gameId;
    }
    public void setQuestion(Long question) 
    {
        this.question = question;
    }

    public Long getQuestion() 
    {
        return question;
    }
    public void setOptionId(Long optionId) 
    {
        this.optionId = optionId;
    }

    public Long getOptionId() 
    {
        return optionId;
    }
    public void setGrade(Long grade) 
    {
        this.grade = grade;
    }

    public Long getGrade() 
    {
        return grade;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("studentId", getStudentId())
            .append("gameId", getGameId())
            .append("question", getQuestion())
            .append("optionId", getOptionId())
            .append("grade", getGrade())
            .toString();
    }
}
